package com.dragon.modules.yuegou.model.coupon;

import com.dragon.modules.yuegou.entity.coupon.WelfareEntity;
import com.dragon.modules.yuegou.enums.coupon.WelfareCouponType;
import com.dragon.modules.yuegou.enums.coupon.WelfareStatus;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 优惠券福利信息表模型类
 * 
 * @author pbuilder generated
 * @date 2019-10-14 15:14:59
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Welfare extends WelfareEntity {

	/**
	 * 优惠券的名称
	 */
	private String title;
	
	/**
	 * 商圈名称
	 */
	private String busdName;
	
	/**
	 * 优惠券类型
	 * 0-停车券
	 */
	private Integer type; 
	/**
	 * 该优惠券是否已经领取？  0 未领取、 1已领取
	 */
	private String acquire;

	/***
	 * 有效期
	 */
	private String validity;

	/**
	 * 优惠券领取总数
	 * @return
	 */
	private Integer counts;

	public String getValidity() {
		return validity;
	}

	public void setValidity(String validity) {
		this.validity = validity;
	}

	public Integer getCounts() {
		return counts;
	}

	public void setCounts(Integer counts) {
		this.counts = counts;
	}

	private String discription;

    public String getDiscription() {
        return discription;
    }

    public void setDiscription(String discription) {
        this.discription = discription;
    }

    public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAcquire() {
		return acquire;
	}

	public void setAcquire(String acquire) {
		this.acquire = acquire;
	}
	
	public String getBusdName() {
		return busdName;
	}

	public void setBusdName(String busdName) {
		this.busdName = busdName;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	/**
	 * 构造一个空优惠券福利信息表模型对象
	 */
	public Welfare(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个优惠券福利信息表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Welfare(WelfareEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个优惠券福利信息表模型对象
	 * 
	 * @param other 其它对象
	 */
	public Welfare(Welfare other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public Welfare id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getGroupId() {
    	return groupId;
    }

    /**
	 * 设置集团ID
	 * 
	 * @param groupId 集团ID
	 * @return 当前对象
	 */
    public Welfare groupId(String groupId) {
    	this.groupId = groupId;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public Welfare busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public WelfareCouponType getCouponType() {
		return super.getCouponType();
	}

	@Override
	public void setCouponType(WelfareCouponType couponType) {
		super.setCouponType(couponType);
	}

	@Override
	public String getCouponTemplateId() {
    	return couponTemplateId;
    }

    /**
	 * 设置券模板ID
	 * 
	 * @param couponTemplateId 券模板ID
	 * @return 当前对象
	 */
    public Welfare couponTemplateId(String couponTemplateId) {
    	this.couponTemplateId = couponTemplateId;
    	return this;
    }

	@Override
	public Integer getNum() {
    	return num;
    }

    /**
	 * 设置福利数量/每人每次领取多少张
	 * 
	 * @param num 福利数量/每人每次领取多少张
	 * @return 当前对象
	 */
    public Welfare num(Integer num) {
    	this.num = num;
    	return this;
    }

	@Override
	public LocalDateTime getBeginTime() {
    	return beginTime;
    }

    /**
	 * 设置发放开始时间
	 * 
	 * @param beginTime 发放开始时间
	 * @return 当前对象
	 */
    public Welfare beginTime(LocalDateTime beginTime) {
    	this.beginTime = beginTime;
    	return this;
    }

	@Override
	public LocalDateTime getEndTime() {
    	return endTime;
    }

    /**
	 * 设置发放结束时间
	 * 
	 * @param endTime 发放结束时间
	 * @return 当前对象
	 */
    public Welfare endTime(LocalDateTime endTime) {
    	this.endTime = endTime;
    	return this;
    }

	@Override
	public WelfareStatus getStatus() {
    	return status;
    }

    /**
	 * 设置[枚举]上架状态：0-已下架-OFF_SHELF、1-已上架-ON_SHELF
	 * 
	 * @param status [枚举]上架状态：0-已下架-OFF_SHELF、1-已上架-ON_SHELF
	 * @return 当前对象
	 */
    public Welfare status(WelfareStatus status) {
    	this.status = status;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人ID
	 * 
	 * @param createdBy 创建人ID
	 * @return 当前对象
	 */
    public Welfare createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public Welfare createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置修改人ID
	 * 
	 * @param modifiedBy 修改人ID
	 * @return 当前对象
	 */
    public Welfare modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置修改时间
	 * 
	 * @param modifiedTime 修改时间
	 * @return 当前对象
	 */
    public Welfare modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置删除标识：0-未删除、1-已删除
	 * 
	 * @param del 删除标识：0-未删除、1-已删除
	 * @return 当前对象
	 */
    public Welfare del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置删除人ID
	 * 
	 * @param delBy 删除人ID
	 * @return 当前对象
	 */
    public Welfare delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置删除时间
	 * 
	 * @param delTime 删除时间
	 * @return 当前对象
	 */
    public Welfare delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }
}
